<form method="POST" action="{:U('Modcp/banning', array('type'=>'editUser'))}">
    <table class="tb">
        <tr>
            <td width="120" align="right"><label for="username">{$Think.lang.username}:</label></td>
            <td><input id="username" class="input" type="text" name="username" size="30" value="" /></td>
        </tr>
        <tr>
            <td align="right"><label for="user_id">UID:</label></td>
            <td><input id="user_id" class="input" type="text" name="user_id" size="30" value="" /></td>
        </tr>
        <tr>
            <td align="right" align="right"></td>
            <td>
            	<input id="btn-submit" class="button" type="submit" value="{$Think.lang.submit}" />
            	<input class="alt-button" type="reset" value="{$Think.lang.reset}" />
            </td>
        </tr>
    </table>
</form>

<notempty name="user">
<h1>{$Think.lang.mcp_edit_user}</h1>
<form method="POST" action="{:U('Modcp/editUser')}">
	<table class="tb">
		<tr>
            <td align="right"><label for="username">{$Think.lang.username}:</label></td>
            <td>{$user.username}</td>
        </tr>
        <tr>
            <td align="right"><label for="email">{$Think.lang.email}:</label></td>
            <td>{$user.email}</td>
        </tr>
        <tr>
            <td align="right"><label for="website">{$Think.lang.user_website}:</label></td>
            <td><input id="website" class="input" type="text" name="website" size="40" value="{$user.website}" /></td>
        </tr>
        <tr>
            <td align="right"><label for="location">{$Think.lang.user_location}:</label></td>
            <td><input id="location" class="input" type="text" name="location" size="40" value="{$user.location}" /></td>
        </tr>
        <tr>
            <td align="right" valign="top"><label for="about">{$Think.lang.user_about}:</label></td>
            <td><textarea id="about" class="textarea" name="about" rows="5" cols="80">{$user.about}</textarea><span id="about-counter" class="counter"></span></td>
        </tr>
        <tr>
            <td align="right" align="right"></td>
            <td>
            	<input id="btn-submit" class="button" type="submit" value="{$Think.lang.save_edit}" />
            	<input class="alt-button" type="reset" value="{$Think.lang.reset}" />
				<input type="hidden" name="user_id" value="{$user.user_id}" />
            </td>
        </tr>
    </table>
</form>
</notempty>
